package com.ecoolex.ying.space.ws;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import com.ecoolex.framework.common.exception.BizException;
import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.framework.common.pojo.Pagination;
import com.ecoolex.framework.common.pojo.Sorting;
import com.ecoolex.ying.space.core.manager.EstateProjectActivityBrandManager;
import com.ecoolex.ying.space.entity.EstateProjectActivityBrand;

@Service
public class EstateProjectActivityBrandServiceImpl implements EstateProjectActivityBrandService{
	
	@Autowired
	private EstateProjectActivityBrandManager manager;

	@Override
	public EstateProjectActivityBrand get(Integer brandId) {
		return manager.get(brandId);
	}

	@Override
	public Pagination<EstateProjectActivityBrand> query(Integer projectId,String name, Sorting[] sorts, Page page) {
		return manager.query(projectId,name, sorts, page);
	}

	@Override
	public Pagination<EstateProjectActivityBrand> queryForH5(Integer projectId,Page page) {
		return manager.queryForH5(projectId,page);
	}

	@Override
	public EstateProjectActivityBrand add(EstateProjectActivityBrand add, String createUser) throws BizException {
		return manager.add(add, createUser);
	}

	@Override
	public EstateProjectActivityBrand edit(EstateProjectActivityBrand edit, String updateUser) throws BizException {
		return manager.edit(edit, updateUser);
	}

	@Override
	public void delete(EstateProjectActivityBrand record, String updateUser) throws BizException {
		manager.delete(record, updateUser);
	}

	@Override
	public void online(EstateProjectActivityBrand record, String updateUser) throws BizException {
		manager.online(record, updateUser);
	}

	@Override
	public void offline(EstateProjectActivityBrand record, String updateUser) throws BizException {
		manager.offline(record, updateUser);
	}

}
